﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Admin.Master" AutoEventWireup="true"
    CodeBehind="EditItem.aspx.cs" Inherits="Cn.Cellula.Website.Admin.Item.EditItem" %>
<%@ Register src="../../Wuc/Wuc_RichEditor.ascx" tagname="Wuc_RichEditor" tagprefix="uc2" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <link type="text/css" rel="Stylesheet" href="/Cellula_Client/controls/JskitControls.css" />
    <script type="text/javascript" src="/jskit.org/model/controls/JskitRichDropDownList.js"></script>
    <script type="text/javascript">
        var jrddlCategory = new JskitRichDropDownList("jrddlCategory");
        var jrddlDept = new JskitRichDropDownList("jrddlDept");
        function PageOnLoad() {
            jrddlCategory.deployTree(fixId("txt_CategoryName"), fixId("hid_CategoryId"), "Ws/_Category.aspx?ok=&rk=");
            jrddlDept.deployTree(fixId("txt_Dept"), fixId("hid_Dept"), "Ws/_Dept.aspx?rk=");
        }
    </script>
    <uc2:Wuc_RichEditor ID="Wuc_RichEditor1" runat="server" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="CPH_PageTitle" runat="server">
编辑对象
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="CPH_MainBody" runat="server">
    <div class="action_bar">
        <asp:Button ID="btn_Next" runat="server" Text="下一步" OnClick="btn_Next_Click" />
        <asp:Button ID="btn_save" runat="server" Text="完成" OnClick="btn_save_Click" />
        <input type="reset" value="重置" />
        <input type="button" onclick="jskitBulter.redirect('Admin/Content/Item/List.aspx')" value="取消" />
    </div>
    <fieldset>
        <legend>对象信息</legend>
        <table border="0" cellpadding="0" cellspacing="0" class="edit_form">
            <tr>
                <td class="edit_form_item_title">
                    <span class="required">分类：</span>
                </td>
                <td class="edit_form_item_content">
                    <asp:TextBox runat="server" ID="txt_CategoryName"></asp:TextBox>
                <asp:HiddenField runat="server" ID="hid_CategoryId" />
                </td>
            </tr>
            <tr>
                <td class="edit_form_item_title">
                    <span class="required">对象名称：</span>
                </td>
                <td class="edit_form_item_content">
                    <asp:TextBox runat="server" ID="txt_ItemName" Width="500px"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="edit_form_item_title">
                    编号：
                </td>
                <td class="edit_form_item_content">
                    <asp:TextBox runat="server" ID="txt_ItemNo"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="edit_form_item_title">
                    标签：
                </td>
                <td class="edit_form_item_content">
                    <asp:TextBox runat="server" ID="txt_Tags" Width="500px"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="edit_form_item_title">
                    所属部门：
                </td>
                <td class="edit_form_item_content">
                    <asp:TextBox runat="server" ID="txt_Dept"></asp:TextBox>
                    <asp:HiddenField runat="server" ID="hid_Dept" />
                </td>
            </tr>
            <tr>
                <td class="edit_form_item_title">
                    读权限：
                </td>
                <td class="edit_form_item_content">
                    <asp:DropDownList runat="server" ID="ddl_VisiableRole" DataTextField="RoleName" DataValueField="RoleKey">
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td class="edit_form_item_title">
                    写权限：
                </td>
                <td class="edit_form_item_content">
                    <asp:DropDownList runat="server" ID="ddl_EditableRole" DataTextField="RoleName" DataValueField="RoleKey">
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td valign="top" class="edit_form_item_title">
                    备注：
                </td>
                <td class="edit_form_item_content">
                    <asp:TextBox runat="server" ID="txt_Desc" TextMode="MultiLine" Width="520px" Height="300px"></asp:TextBox>
                </td>
            </tr>
        </table>
    </fieldset>
</asp:Content>
